var nodemailer = require("nodemailer");
var constant = require("../private/constant")

var transporter = nodemailer.createTransport({
    host: constant.emailHost,
    service: constant.emailService,
    secure: true,
    auth: {
        user: constant.emailUser,
        pass: constant.emailSMTPSecret
    }
});

module.exports = transporter